<template>
  <div>
    <button @click="goback">back</button>
    <h5>这是详情页</h5>
    <h4>{{ obj.title }}</h4>
    <img :src="obj.pic" alt="" />
  </div>
</template>
<script>
export default {
  data() {
    return {
      //   obj: this.$route.query.obj,
      obj: this.$route.params.obj,
    };
  },
  methods: {
    goback() {
      this.$router.go(-1);
    },
  },
};
</script>
